package com.demo.config;

import com.demo.entity.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhiqiang
 */
@Configuration
public class ConfigTest {

    @Bean
    public Student buildStudent(){
        return new Student("001", "zhiqiang");
    }

    @Bean
    public Student buildStudent2(){
        Student student = new Student("002", "zhiqiang2");
        return student;
    }
}
